import { defHttp } from '/@/utils/http/axios'

import { ErrorMessageMode } from '/#/axios'

import { startAppParams } from './model/blockchainModel'

enum Api {
  startApp = '/console/startApp',
}

export function startAppApi(params: startAppParams, mode: ErrorMessageMode = 'modal') {
  return defHttp.post(
    {
      url: Api.startApp,
      params,
    },
    {
      errorMessageMode: mode,
    },
  )
}
